Make enum generation private by default, export stub symbol
authorColin Walters <walters@verbum.org>
Thu, 12 May 2016 14:32:17 +0000 (10:32 -0400)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Thu, 12 May 2016 17:15:50 +0000 (17:15 +0000)
commita5f703799f8da2b20eba949d2d053d4b307490c9
tree77d25bcc07772bd0ba034e56eeaee815856f1db1
parentf98b8bd0d7e4f98951e8d460c1f1b30538da697f
Make enum generation private by default, export stub symbol

When we added enum type generation, the generated symbols used
the `ostree_` prefix, and at the time that implied they were public.

So we started (if built with libsoup) exporting
`ostree_fetcher_config_flags_get_type`.

I think it's not worth confusing ABI checkers, so let's export the
dummy symbol forever, and switch enums to be private by default.

We should revisit this and also export some auto-generated enum
types for public enums, but that's a separate patch.

Closes: #296
Approved by: gatispaeglis
Makefile-libostree-defines.am
Makefile-libostree.am
src/libostree/ostree-dummy-enumtypes.c [new file with mode: 0644]
src/libostree/ostree-dummy-enumtypes.h [new file with mode: 0644]
src/libostree/ostree-enumtypes.c.template
src/libostree/ostree-enumtypes.h.template